//
//  LWX_VideoCommentCell.m
//  Otaku
//
//  Created by lanou3g on 16/5/10.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import "LWX_VideoCommentCell.h"

@interface LWX_VideoCommentCell()
@property (weak, nonatomic) IBOutlet UIImageView *userImageView;
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *commentLabel;
@property (weak, nonatomic) IBOutlet UILabel *biggCount;



@end


@implementation LWX_VideoCommentCell

- (void)awakeFromNib {
    // Initialization code
}
- (void)setModel:(LWX_VideoCommentModel *)model {
    _model = model;
    self.userImageView.layer.cornerRadius = 15;
    self.userImageView.layer.masksToBounds = YES;
    [self.userImageView sd_setImageWithURL:[NSURL URLWithString:self.model.avatar_url]];
    
    self.userNameLabel.text = self.model.user_name;
    self.commentLabel.text = self.model.text;
    self.biggCount.text = [NSString stringWithFormat:@"%ld",self.model.digg_count];
}

+ (instancetype)cell {
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
